<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%String path = request.getContextPath();%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title></title>
<style>
body{font-family:"Times New Roman",Georgia,Serif}
a{color:#000;font-size: 13px;}
a:link,a:visited{text-decoration:none;}
a:hover{text-decoration:underline;}
.pagination{text-align:center;border: 1px solid #666666;background-color: #dddddd;width:215px;padding-top:3px; height:20px}
span{color:#ACACAC;background-color: #E5E5E5;border:1px solid #EFEFEF;font-size: 13px;margin-right:8px}
.footer{position:absolute; bottom:0; left:0; text-align:center; width:100%; padding:0 5px;z-index:-1}
.divider {clear:both; display:block; overflow:hidden; text-indent:-1000px; width:auto; height:1px; padding:4px 0 0 0; margin-bottom:2px; border-style:dotted; border-width:0 0 1px 0;}
</style>
<script type="text/javascript">
function createPagenation(rowsCount, onePageRows, currentPage, urlStr) {
	var pagesCount = parseInt(rowsCount%onePageRows==0?rowsCount/onePageRows:(rowsCount/onePageRows+1));
	var str = '<div id="paginationDiv" class="pagination" align="center">';
	str += '<span style="color:#000;font-size:14px;background:none;border:none;">'+currentPage+'/'+pagesCount+'</span>';
	if (pagesCount <= 1)return;
	else if (currentPage == 1)
		str += '<span class="span">首页</span><span>上一页</span><span><a href="'+(urlStr+(currentPage+1))+'">下一页</a></span><span><a href="'+(urlStr+pagesCount)+'">末页</a></span>';
	else if (currentPage != pagesCount)
		str += '<span><a href="'+(urlStr+1)+'">首页</a></span><span><a href="'+(urlStr+(currentPage-1))+'">上一页</a></span><a href="'+(urlStr+(currentPage+1))+'">下一页</a></span><span><a href="'+(urlStr+pagesCount)+'">末页</a></span>';		
	else
		str += '<span><a href="'+(urlStr+1)+'">首页</a></span><span><a href="'+(urlStr+(currentPage-1))+'">上一页</a></span><span>下一页</span><span>末页</span>';		
	document.write(str);
}
</script>
<body>
<s:iterator value="afficheList">
	<div>
		<a href="<%=path%>/affiche/previewAffiche.action?afficheVO.id=${id}" target="dialog" rel="afficheList" max="true" title="${title}" width="800" height="480">${title}</a>
		<label style="margin-left: 50px;font-size:12px;color: #333333"><s:date format="yyyy-MM-dd HH:mm:ss" name="issueTime"/></label>
	</div>
	<div class="divider"></div>
</s:iterator>
<div class="footer"><script>createPagenation(parseInt("${paginator.totalCount}"),parseInt("${paginator.pageSize}"),parseInt("${paginator.pageIndex}"),"${pageContext.request.contextPath}/affiche/listWebAffiche.action?page=","");if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){document.getElementById("paginationDiv").style.marginLeft="400px";}</script></div>
</body></html>